<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2023/8/28
  Time: 8:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        table{
            border: 1px solid red;
            margin: 0px auto;
            border-collapse: collapse;
            width: 900px;
            font-size: 30px;
            text-align: center;
            color:blue;
        }
        td{
            border: 1px solid red;
        }
        #main
        {
            border: 1px solid black;
            width: 1200px;
            height: 700px;
            margin: 0px auto;
        }
        #top
        {
            border: 1px solid black;
            width: 1200px;
            height: 200px;
        }
        #bom
        {
            border: 1px solid black;
            width: 1200px;
            height: 500px;
        }
        #left
        {
            border: 1px solid black;
            width: 200px;
            height: 500px;
            float: left;
        }
        #rig
        {
            border: 1px solid black;
            width: 900px;
            height: 500px;
            float:right;
        }
        .aa{
            text-align: center;
            font-size: 40px;

        }
    </style>
</head>
<body>
<div id="main">
    <div id="top">
        <%--拦截器--%>
        <%=session.getAttribute("login")==null?"没有登陆":session.getAttribute("login") %>
        <a href="/Web1/exit">退出</a>
        当前访问人数:
        <%
           Object obj=application.getAttribute("count");
           if(obj!=null)
           {

               Integer count=(Integer)obj;
               count++;
               application.setAttribute("count",count);

           }
           else
           {
               application.setAttribute("count",new Integer(1));
           }
        %>
        <%=application.getAttribute("count") %>
    </div>
    <div id="bom">
        <div id="left">
            <a href="List.jsp"><span class="aa">新闻管理</span></a> <br /><br />
            <a href="TypeList.jsp"><span class="aa">类型管理</span></a>
        </div>
        <div id="rig">
</body>
</html>
